package xyz.kongbai121.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 用户实体类
 * @author 空白
 */
@Getter
@Setter
@ToString
public class UserWeb {
    @TableId(type = IdType.NONE)
    private String openid;                      //唯一标识
    private String username;                    //用户名
    private String password;                    //密码

    @TableField(exist = false)
    private User user;

    public UserWeb(String openid, String username, String password) {
        this.openid = openid;
        this.username = username;
        this.password = password;
    }

    public UserWeb() {
    }
}
